package com.hwy.catering.controller;

import com.hwy.catering.service.FlavorService;
import com.hwy.catering.utils.R;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@Api(tags = "口味管理接口")
@RestController
@RequestMapping("/cater/flavor")
public class FlavorController {

    @Resource
    private FlavorService flavorService;

    @ApiOperation(value = "查询全部口味方法")
    @GetMapping("/findFlavor")
    public R findFlavor(){
        R r = flavorService.findFlavor();
        return r;
    }
}
